﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace SESSION {
    public class SessionManager {
        private SessionManager() {
        }

        public static SessionManager Current {
            get {
                SessionManager session = HttpContext.Current.Session["__SessionState__"] as SessionManager;
                if (session == null) {
                    session = new SessionManager();
                    HttpContext.Current.Session["__SessionState__"] = session;
                }
                return session;
            }

        }

        //Enter the Session Name here as Properties

        public string loginState { get; set; }
    }
}
